package cn.humaohua.study.yanmo_design_pattern.ch10.va;

public class CPU extends Colleague {

    private String videoData;
    private String soundData;

    public CPU(Mediator mediator) {
        super(mediator);
    }

    public void executeData(String data) {
        // String data = ((Motherboard) getMediator()).getCDDriver().getData();
        videoData = data.split(",")[0];
        soundData = data.split(",")[1];
        this.getMediator().changed(this);
    }

    public String getVideoData() {
        return this.videoData;
    }

    public String getSoundData() {
        return this.soundData;
    }

}
